<?php if (!defined('BASEPATH'))     exit('No direct script access allowed');

/* controller di setiap modul dapat extends pada controller aplikan. Berfungsi untuk membatasi hak akses*/
class Public_Controller extends MY_Controller {

    function __construct() {
        parent::__construct();
        
        
//        if (!isset($this->session->userdata['telah_masuk']) && !isset($this->session->userdata['telah_masuk']["privilege"])) {
//            $this->session->set_userdata(array('last_url' => current_url()));
//            redirect('user/login', 'refresh');
//        }
//        if ("aplikan" != $this->session->userdata['telah_masuk']["privilege"]) {
//            $this->session->set_userdata(array('last_url' => current_url()));
//            redirect('user/login', 'refresh');
//        }
//        if (0 >= $this->session->userdata['telah_masuk']["id"]) {
//            $this->session->set_userdata(array('last_url' => current_url()));
//            redirect('user/login', 'refresh');
//        }
    }

}

?>
